import requests

from config import *


class SmsAPI:
    def __init__(self):
        self.url_submitMessage = url_prefix + "/sms/submitMessage"

    def submitMessage(self, data):
        r"""
        发送短信验证码接口
        :param data: 请求参数
        :return: 返回结果
        """
        return requests.post(url=self.url_submitMessage, json=data)
